home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / drivers / junofrst.c < prev    next >
C/C++ Source or Header  |  2000-05-04  |  15KB  |  486 lines

  1. /***************************************************************************
  2.  
  3. Juno First :  memory map same as tutankham with some address changes
  4. Chris Hardy (chrish@kcbbs.gen.nz)
  5.  
  6. Thanks to Rob Jarret for the original Tutankham memory map on which both the
  7. Juno First emu and the mame driver is based on.
  8.  
  9.         Juno First memory map by Chris Hardy
  10.  
  11. Read/Write memory
  12.  
  13. $0000-$7FFF = Screen RAM (only written to)
  14. $8000-$800f = Palette RAM. BBGGGRRR (D7->D0)
  15. $8100-$8FFF = Work RAM
  16.  
  17. Write memory
  18.  
  19. $8030    - interrupt control register D0 = interupts on or off
  20. $8031    - unknown
  21. $8032    - unknown
  22. $8033    - unknown
  23. $8034    - flip screen x
  24. $8035    - flip screen y
  25.  
  26. $8040    - Sound CPU req/ack data
  27. $8050    - Sound CPU command data
  28. $8060    - Banked memory page select.
  29. $8070/1 - Blitter source data word
  30. $8072/3 - Blitter destination word. Write to $8073 triggers a blit
  31.  
  32. Read memory
  33.  
  34. $8010    - Dipswitch 2
  35. $801c    - Watchdog
  36. $8020    - Start/Credit IO
  37.                 D2 = Credit 1
  38.                 D3 = Start 1
  39.                 D4 = Start 2
  40. $8024    - P1 IO
  41.                 D0 = left
  42.                 D1 = right
  43.                 D2 = up
  44.                 D3 = down
  45.                 D4 = fire 2
  46.                 D5 = fire 1
  47.  
  48. $8028    - P2 IO - same as P1 IO
  49. $802c    - Dipswitch 1
  50.  
  51.  
  52.  
  53. $9000->$9FFF Banked Memory - see below
  54. $A000->$BFFF "juno\\JFA_B9.BIN",
  55. $C000->$DFFF "juno\\JFB_B10.BIN",
  56. $E000->$FFFF "juno\\JFC_A10.BIN",
  57.  
  58. Banked memory - Paged into $9000->$9FFF..
  59.  
  60. NOTE - In Tutankhm this only contains graphics, in Juno First it also contains code. (which
  61.         generally sets up the blitter)
  62.  
  63.     "juno\\JFC1_A4.BIN",    $0000->$1FFF
  64.     "juno\\JFC2_A5.BIN",    $2000->$3FFF
  65.     "juno\\JFC3_A6.BIN",    $4000->$5FFF
  66.     "juno\\JFC4_A7.BIN",    $6000->$7FFF
  67.     "juno\\JFC5_A8.BIN",    $8000->$9FFF
  68.     "juno\\JFC6_A9.BIN",    $A000->$bFFF
  69.  
  70. Blitter source graphics
  71.  
  72.     "juno\\JFS3_C7.BIN",    $C000->$DFFF
  73.     "juno\\JFS4_D7.BIN",    $E000->$FFFF
  74.     "juno\\JFS5_E7.BIN",    $10000->$11FFF
  75.  
  76.  
  77. ***************************************************************************/
  78.  
  79.  
  80. #include "driver.h"
  81. #include "vidhrdw/generic.h"
  82. #include "cpu/m6809/m6809.h"
  83. #include "cpu/i8039/i8039.h"
  84. #include "cpu/z80/z80.h"
  85.  
  86.  
  87. void konami1_decode(void);
  88.  
  89. extern unsigned char *tutankhm_scrollx;
  90.  
  91. WRITE_HANDLER( tutankhm_videoram_w );
  92. WRITE_HANDLER( tutankhm_flipscreen_w );
  93. WRITE_HANDLER( junofrst_blitter_w );
  94. void tutankhm_vh_screenrefresh(struct osd_bitmap *bitmap,int full_refresh);
  95.  
  96.  
  97. WRITE_HANDLER( tutankhm_sh_irqtrigger_w );
  98.  
  99.  
  100. WRITE_HANDLER( junofrst_bankselect_w )
  101. {
  102.     int bankaddress;
  103.     unsigned char *RAM = memory_region(REGION_CPU1);
  104.  
  105.     bankaddress = 0x10000 + (data & 0x0f) * 0x1000;
  106.     cpu_setbank(1,&RAM[bankaddress]);
  107. }
  108.  
  109.  
  110. static int i8039_irqenable;
  111. static int i8039_status;
  112.  
  113. static READ_HANDLER( junofrst_portA_r )
  114. {
  115.     int timer;
  116.  
  117.  
  118.     /* main xtal 14.318MHz, divided by 8 to get the CPU clock, further */
  119.     /* divided by 1024 to get this timer */
  120.     /* (divide by (1024/2), and not 1024, because the CPU cycle counter is */
  121.     /* incremented every other state change of the clock) */
  122.     timer = (cpu_gettotalcycles() / (1024/2)) & 0x0f;
  123.  
  124.     /* low three bits come from the 8039 */
  125.  
  126.     return (timer << 4) | i8039_status;
  127. }
  128.  
  129. static WRITE_HANDLER( junofrst_portB_w )
  130. {
  131.     int i;
  132.  
  133.  
  134.     for (i = 0;i < 3;i++)
  135.     {
  136.         int C;
  137.  
  138.  
  139.         C = 0;
  140.         if (data & 1) C += 47000;    /* 47000pF = 0.047uF */
  141.         if (data & 2) C += 220000;    /* 220000pF = 0.22uF */
  142.         data >>= 2;
  143.         set_RC_filter(i,1000,2200,200,C);
  144.     }
  145. }
  146.  
  147. WRITE_HANDLER( junofrst_sh_irqtrigger_w )
  148. {
  149.     static int last;
  150.  
  151.  
  152.     if (last == 0 && data == 1)
  153.     {
  154.         /* setting bit 0 low then high triggers IRQ on the sound CPU */
  155.         cpu_cause_interrupt(1,0xff);
  156.     }
  157.  
  158.     last = data;
  159. }
  160.  
  161. WRITE_HANDLER( junofrst_i8039_irq_w )
  162. {
  163.     if (i8039_irqenable)
  164.         cpu_cause_interrupt(2,I8039_EXT_INT);
  165. }
  166.  
  167. static WRITE_HANDLER( i8039_irqen_and_status_w )
  168. {
  169.     i8039_irqenable = data & 0x80;
  170.     i8039_status = (data & 0x70) >> 4;
  171. }
  172.  
  173.  
  174.  
  175.  
  176. static struct MemoryReadAddress readmem[] =
  177. {
  178.     { 0x0000, 0x7fff, MRA_RAM },
  179.     { 0x8010, 0x8010, input_port_0_r },    /* DSW2 (inverted bits) */
  180.     { 0x801c, 0x801c, watchdog_reset_r },
  181.     { 0x8020, 0x8020, input_port_1_r },    /* IN0 I/O: Coin slots, service, 1P/2P buttons */
  182.     { 0x8024, 0x8024, input_port_2_r },    /* IN1: Player 1 I/O */
  183.     { 0x8028, 0x8028, input_port_3_r },    /* IN2: Player 2 I/O */
  184.     { 0x802c, 0x802c, input_port_4_r },    /* DSW1 (inverted bits) */
  185.     { 0x8100, 0x8fff, MRA_RAM },
  186.     { 0x9000, 0x9fff, MRA_BANK1 },
  187.     { 0xa000, 0xffff, MRA_ROM },
  188.     { -1 }    /* end of table */
  189. };
  190.  
  191. static struct MemoryWriteAddress writemem[] =
  192. {
  193.     { 0x0000, 0x7fff, tutankhm_videoram_w, &videoram, &videoram_size },
  194.     { 0x8000, 0x800f, paletteram_BBGGGRRR_w, &paletteram },
  195.     { 0x8030, 0x8030, interrupt_enable_w },
  196.     { 0x8031, 0x8032, coin_counter_w },
  197.     { 0x8033, 0x8033, MWA_RAM, &tutankhm_scrollx },              /* video x pan hardware reg - Not USED in Juno*/
  198.     { 0x8034, 0x8035, tutankhm_flipscreen_w },
  199.     { 0x8040, 0x8040, junofrst_sh_irqtrigger_w },
  200.     { 0x8050, 0x8050, soundlatch_w },
  201.     { 0x8060, 0x8060, junofrst_bankselect_w },
  202.     { 0x8070, 0x8073, junofrst_blitter_w },
  203.     { 0x8100, 0x8fff, MWA_RAM },
  204.     { 0x9000, 0xffff, MWA_ROM },
  205.     { -1 } /* end of table */
  206. };
  207.  
  208.  
  209. static struct MemoryReadAddress sound_readmem[] =
  210. {
  211.     { 0x0000, 0x0fff, MRA_ROM },
  212.     { 0x2000, 0x23ff, MRA_RAM },
  213.     { 0x3000, 0x3000, soundlatch_r },
  214.     { 0x4001, 0x4001, AY8910_read_port_0_r },
  215.     { -1 }    /* end of table */
  216. };
  217.  
  218. static struct MemoryWriteAddress sound_writemem[] =
  219. {
  220.     { 0x0000, 0x0fff, MWA_ROM },
  221.     { 0x2000, 0x23ff, MWA_RAM },
  222.     { 0x4000, 0x4000, AY8910_control_port_0_w },
  223.     { 0x4002, 0x4002, AY8910_write_port_0_w },
  224.     { 0x5000, 0x5000, soundlatch2_w },
  225.     { 0x6000, 0x6000, junofrst_i8039_irq_w },
  226.     { -1 }    /* end of table */
  227. };
  228.  
  229.  
  230. static struct MemoryReadAddress i8039_readmem[] =
  231. {
  232.     { 0x0000, 0x0fff, MRA_ROM },
  233.     { -1 }    /* end of table */
  234. };
  235.  
  236. static struct MemoryWriteAddress i8039_writemem[] =
  237. {
  238.     { 0x0000, 0x0fff, MWA_ROM },
  239.     { -1 }    /* end of table */
  240. };
  241.  
  242. static struct IOReadPort i8039_readport[] =
  243. {
  244.     { 0x00, 0xff, soundlatch2_r },
  245.     { 0x111,0x111, IORP_NOP },
  246.     { -1 }
  247. };
  248.  
  249. static struct IOWritePort i8039_writeport[] =
  250. {
  251.     { I8039_p1, I8039_p1, DAC_0_data_w },
  252.     { I8039_p2, I8039_p2, i8039_irqen_and_status_w },
  253.     { -1 }    /* end of table */
  254. };
  255.  
  256.  
  257. INPUT_PORTS_START( junofrst )
  258.     PORT_START      /* DSW2 */
  259.     PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
  260.     PORT_DIPSETTING(    0x03, "3" )
  261.     PORT_DIPSETTING(    0x02, "4" )
  262.     PORT_DIPSETTING(    0x01, "5" )
  263.     PORT_BITX( 0,       0x00, IPT_DIPSWITCH_SETTING | IPF_CHEAT, "256", IP_KEY_NONE, IP_JOY_NONE )
  264.     PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) )
  265.     PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
  266.     PORT_DIPSETTING(    0x04, DEF_STR( Cocktail ) )
  267.     PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
  268.     PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
  269.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  270.     PORT_DIPNAME( 0x70, 0x70, DEF_STR( Difficulty ) )
  271.     PORT_DIPSETTING(    0x70, "1 (Easiest)" )
  272.     PORT_DIPSETTING(    0x60, "2" )
  273.     PORT_DIPSETTING(    0x50, "3" )
  274.     PORT_DIPSETTING(    0x40, "4" )
  275.     PORT_DIPSETTING(    0x30, "5" )
  276.     PORT_DIPSETTING(    0x20, "6" )
  277.     PORT_DIPSETTING(    0x10, "7" )
  278.     PORT_DIPSETTING(    0x00, "8 (Hardest)" )
  279.     PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) )
  280.     PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
  281.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  282.  
  283.     PORT_START      /* IN0 */
  284.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
  285.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
  286.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 )
  287.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
  288.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 )
  289.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
  290.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  291.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
  292.  
  293.     PORT_START      /* IN1 */
  294.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY )
  295.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY )
  296.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY )
  297.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY )
  298.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 )
  299.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 )
  300.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 )
  301.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
  302.  
  303.     PORT_START      /* IN2 */
  304.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_COCKTAIL )
  305.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_COCKTAIL )
  306.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY | IPF_COCKTAIL )
  307.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_COCKTAIL )
  308.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_COCKTAIL )
  309.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
  310.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 | IPF_COCKTAIL )
  311.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
  312.  
  313.     PORT_START      /* DSW1 */
  314.     PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
  315.     PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
  316.     PORT_DIPSETTING(    0x05, DEF_STR( 3C_1C ) )
  317.     PORT_DIPSETTING(    0x08, DEF_STR( 2C_1C ) )
  318.     PORT_DIPSETTING(    0x04, DEF_STR( 3C_2C ) )
  319.     PORT_DIPSETTING(    0x01, DEF_STR( 4C_3C ) )
  320.     PORT_DIPSETTING(    0x0f, DEF_STR( 1C_1C ) )
  321.     PORT_DIPSETTING(    0x03, DEF_STR( 3C_4C ) )
  322.     PORT_DIPSETTING(    0x07, DEF_STR( 2C_3C ) )
  323.     PORT_DIPSETTING(    0x0e, DEF_STR( 1C_2C ) )
  324.     PORT_DIPSETTING(    0x06, DEF_STR( 2C_5C ) )
  325.     PORT_DIPSETTING(    0x0d, DEF_STR( 1C_3C ) )
  326.     PORT_DIPSETTING(    0x0c, DEF_STR( 1C_4C ) )
  327.     PORT_DIPSETTING(    0x0b, DEF_STR( 1C_5C ) )
  328.     PORT_DIPSETTING(    0x0a, DEF_STR( 1C_6C ) )
  329.     PORT_DIPSETTING(    0x09, DEF_STR( 1C_7C ) )
  330.     PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
  331.     PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
  332.     PORT_DIPSETTING(    0x20, DEF_STR( 4C_1C ) )
  333.     PORT_DIPSETTING(    0x50, DEF_STR( 3C_1C ) )
  334.     PORT_DIPSETTING(    0x80, DEF_STR( 2C_1C ) )
  335.     PORT_DIPSETTING(    0x40, DEF_STR( 3C_2C ) )
  336.     PORT_DIPSETTING(    0x10, DEF_STR( 4C_3C ) )
  337.     PORT_DIPSETTING(    0xf0, DEF_STR( 1C_1C ) )
  338.     PORT_DIPSETTING(    0x30, DEF_STR( 3C_4C ) )
  339.     PORT_DIPSETTING(    0x70, DEF_STR( 2C_3C ) )
  340.     PORT_DIPSETTING(    0xe0, DEF_STR( 1C_2C ) )
  341.     PORT_DIPSETTING(    0x60, DEF_STR( 2C_5C ) )
  342.     PORT_DIPSETTING(    0xd0, DEF_STR( 1C_3C ) )
  343.     PORT_DIPSETTING(    0xc0, DEF_STR( 1C_4C ) )
  344.     PORT_DIPSETTING(    0xb0, DEF_STR( 1C_5C ) )
  345.     PORT_DIPSETTING(    0xa0, DEF_STR( 1C_6C ) )
  346.     PORT_DIPSETTING(    0x90, DEF_STR( 1C_7C ) )
  347.     PORT_DIPSETTING(    0x00, "Disabled" )
  348. /* 0x00 not remmed out since the game makes the usual sound if you insert the coin */
  349. INPUT_PORTS_END
  350.  
  351.  
  352.  
  353. static struct AY8910interface ay8910_interface =
  354. {
  355.     1,    /* 1 chip */
  356.     14318000/8,    /* 1.78975 MHz */
  357.     { 30 },
  358.     { junofrst_portA_r },
  359.     { 0 },
  360.     { 0 },
  361.     { junofrst_portB_w }
  362. };
  363.  
  364. static struct DACinterface dac_interface =
  365. {
  366.     1,
  367.     { 50 }
  368. };
  369.  
  370.  
  371. static struct MachineDriver machine_driver_junofrst =
  372. {
  373.     /* basic machine hardware */
  374.     {
  375.         {
  376.             CPU_M6809,
  377.             1500000,            /* 1.5 Mhz ??? */
  378.             readmem,writemem,0,0,
  379.             interrupt,1
  380.         },
  381.         {
  382.             CPU_Z80 | CPU_AUDIO_CPU,
  383.             14318000/8,    /* 1.78975 MHz */
  384.             sound_readmem,sound_writemem,0,0,
  385.             ignore_interrupt,1    /* interrupts are triggered by the main CPU */
  386.         },
  387.         {
  388.             CPU_I8039 | CPU_AUDIO_CPU,
  389.             8000000/15,    /* 8MHz crystal */
  390.             i8039_readmem,i8039_writemem,i8039_readport,i8039_writeport,
  391.             ignore_interrupt,1
  392.         }
  393.     },
  394.     30, DEFAULT_30HZ_VBLANK_DURATION,    /* frames per second, vblank duration */
  395.     1,    /* 1 CPU slice per frame - interleaving is forced when a sound command is written */
  396.     0,                /* init machine routine */
  397.  
  398.     /* video hardware */
  399.     32*8, 32*8, { 0*8, 32*8-1, 2*8, 30*8-1 },    /* not sure about the visible area */
  400.     0,                    /* GfxDecodeInfo * */
  401.     16,                                  /* total colors */
  402.     0,                                      /* color table length */
  403.     0,            /* convert color prom routine */
  404.  
  405.     VIDEO_TYPE_RASTER|VIDEO_MODIFIES_PALETTE,
  406.     0,                        /* vh_init routine */
  407.     generic_vh_start,                    /* vh_start routine */
  408.     generic_vh_stop,                    /* vh_stop routine */
  409.     tutankhm_vh_screenrefresh,                /* vh_update routine */
  410.  
  411.     /* sound hardware */
  412.     0,0,0,0,
  413.     {
  414.         {
  415.             SOUND_AY8910,
  416.             &ay8910_interface
  417.         },
  418.         {
  419.             SOUND_DAC,
  420.             &dac_interface
  421.         }
  422.     }
  423. };
  424.  
  425.  
  426. ROM_START( junofrst )
  427.     ROM_REGION( 2*0x1c000, REGION_CPU1 )    /* code + space for decrypted opcodes */
  428.     ROM_LOAD( "jfa_b9.bin",   0x0a000, 0x2000, 0xf5a7ab9d ) /* program ROMs */
  429.     ROM_LOAD( "jfb_b10.bin",  0x0c000, 0x2000, 0xf20626e0 )
  430.     ROM_LOAD( "jfc_a10.bin",  0x0e000, 0x2000, 0x1e7744a7 )
  431.  
  432.     ROM_LOAD( "jfc1_a4.bin",  0x10000, 0x2000, 0x03ccbf1d ) /* graphic and code ROMs (banked) */
  433.     ROM_LOAD( "jfc2_a5.bin",  0x12000, 0x2000, 0xcb372372 )
  434.     ROM_LOAD( "jfc3_a6.bin",  0x14000, 0x2000, 0x879d194b )
  435.     ROM_LOAD( "jfc4_a7.bin",  0x16000, 0x2000, 0xf28af80b )
  436.     ROM_LOAD( "jfc5_a8.bin",  0x18000, 0x2000, 0x0539f328 )
  437.     ROM_LOAD( "jfc6_a9.bin",  0x1a000, 0x2000, 0x1da2ad6e )
  438.  
  439.     ROM_REGION(  0x10000 , REGION_CPU2 ) /* 64k for Z80 sound CPU code */
  440.     ROM_LOAD( "jfs1_j3.bin",  0x0000, 0x1000, 0x235a2893 )
  441.  
  442.     ROM_REGION( 0x1000, REGION_CPU3 )    /* 8039 */
  443.     ROM_LOAD( "jfs2_p4.bin",  0x0000, 0x1000, 0xd0fa5d5f )
  444.  
  445.     ROM_REGION( 0x6000, REGION_GFX1 )    /* BLTROM, used at runtime */
  446.     ROM_LOAD( "jfs3_c7.bin",  0x00000, 0x2000, 0xaeacf6db )
  447.     ROM_LOAD( "jfs4_d7.bin",  0x02000, 0x2000, 0x206d954c )
  448.     ROM_LOAD( "jfs5_e7.bin",  0x04000, 0x2000, 0x1eb87a6e )
  449. ROM_END
  450.  
  451. ROM_START( junofstg )
  452.     ROM_REGION( 2*0x1c000, REGION_CPU1 )    /* code + space for decrypted opcodes */
  453.     ROM_LOAD( "jfg_a.9b",     0x0a000, 0x2000, 0x8f77d1c5 ) /* program ROMs */
  454.     ROM_LOAD( "jfg_b.10b",    0x0c000, 0x2000, 0xcd645673 )
  455.     ROM_LOAD( "jfg_c.10a",    0x0e000, 0x2000, 0x47852761 )
  456.  
  457.     ROM_LOAD( "jfgc1.4a",     0x10000, 0x2000, 0x90a05ae6 ) /* graphic and code ROMs (banked) */
  458.     ROM_LOAD( "jfc2_a5.bin",  0x12000, 0x2000, 0xcb372372 )
  459.     ROM_LOAD( "jfc3_a6.bin",  0x14000, 0x2000, 0x879d194b )
  460.     ROM_LOAD( "jfgc4.7a",     0x16000, 0x2000, 0xe8864a43 )
  461.     ROM_LOAD( "jfc5_a8.bin",  0x18000, 0x2000, 0x0539f328 )
  462.     ROM_LOAD( "jfc6_a9.bin",  0x1a000, 0x2000, 0x1da2ad6e )
  463.  
  464.     ROM_REGION(  0x10000 , REGION_CPU2 ) /* 64k for Z80 sound CPU code */
  465.     ROM_LOAD( "jfs1_j3.bin",  0x0000, 0x1000, 0x235a2893 )
  466.  
  467.     ROM_REGION( 0x1000, REGION_CPU3 )    /* 8039 */
  468.     ROM_LOAD( "jfs2_p4.bin",  0x0000, 0x1000, 0xd0fa5d5f )
  469.  
  470.     ROM_REGION( 0x6000, REGION_GFX1 )    /* BLTROM, used at runtime */
  471.     ROM_LOAD( "jfs3_c7.bin",  0x00000, 0x2000, 0xaeacf6db )
  472.     ROM_LOAD( "jfs4_d7.bin",  0x02000, 0x2000, 0x206d954c )
  473.     ROM_LOAD( "jfs5_e7.bin",  0x04000, 0x2000, 0x1eb87a6e )
  474. ROM_END
  475.  
  476.  
  477.  
  478. static void init_junofrst(void)
  479. {
  480.     konami1_decode();
  481. }
  482.  
  483.  
  484. GAME( 1983, junofrst, 0,        junofrst, junofrst, junofrst, ROT90, "Konami", "Juno First" )
  485. GAME( 1983, junofstg, junofrst, junofrst, junofrst, junofrst, ROT90, "Konami (Gottlieb license)", "Juno First (Gottlieb)" )
  486.